import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/financial',
  name: 'financial',
  redirect: '/financial/in',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: '财务管理',
    icon: 'el-icon-Money',
    sort: 4
  },
  children: [
    {
      path: '/financial/in',
      name: 'financial_in',
      component: () => import('@/views/financial/in/index.vue'),
      meta: {
        title: '收入管理', // 包括已经提现
        icon: 'el-icon-more'
      }
    },
    {
      path: '/financial/out',
      name: 'financial_out',
      component: () => import('@/views/financial/out/index.vue'),
      meta: {
        title: '支出管理', //包括已经打款
        icon: 'el-icon-more',
        roles: ['adminSp', 'admin', 'proxy1']
      }
    },
    {
      path: '/financial/getmay',
      name: 'financial_getmay',
      component: () => import('@/views/financial/getmay/index.vue'),
      meta: {
        title: '提现申请管理',
        icon: 'el-icon-more', // 管理用户发起提现的记录
        roles: ['adminSp', 'admin', 'proxy1']
      }
    }
  ]
} as RouteRecordRaw;
